package day8;

public class D8_1 {
    public static void main(String[] args) {
    Manager manager=new Manager();
    manager.name="张三";
    manager.ID="123456";
    manager.Salary=4556;
    manager.Bonus=5668;
    manager.work();
    Coder coder=new Coder();
    coder.name="李四";
    coder.ID="7890";
    coder.Salary=45688;
    coder.work();
    }
}
class Coder{
    String name;
    String ID;
    int Salary;
    public void work(){
        System.out.println(name+" "+ID+" "+Salary);
    }
}
class Manager extends Coder{
    int Bonus;
    public void work(){
        System.out.println(name+" "+ID+" "+Salary+" "+Bonus);
    }
}
